<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>安装YukiDrive–支持Onedrive-SharePoint文件浏览程序 | 黎の梦</title><meta name="keywords" content="onedrive"><meta name="author" content="黎"><meta name="copyright" content="黎"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="部署获取程序从 Release 获取对应系统的最新版本 获取 ClientId 与 ClientSecret登录Azure：https:&#x2F;&#x2F;portal.azure.com&#x2F; 或 https:&#x2F;&#x2F;portal.azure.cn&#x2F; （世纪互联） 点击 Azure Active Directory &#x2F; 应用注册 &#x2F; 新注册 名字任意取，账户类型为 任何组织目录(任何 Azure AD 目录 - 多租户">
<meta property="og:type" content="article">
<meta property="og:title" content="安装YukiDrive–支持Onedrive-SharePoint文件浏览程序">
<meta property="og:url" content="https://lidream.xyz/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/index.html">
<meta property="og:site_name" content="黎の梦">
<meta property="og:description" content="部署获取程序从 Release 获取对应系统的最新版本 获取 ClientId 与 ClientSecret登录Azure：https:&#x2F;&#x2F;portal.azure.com&#x2F; 或 https:&#x2F;&#x2F;portal.azure.cn&#x2F; （世纪互联） 点击 Azure Active Directory &#x2F; 应用注册 &#x2F; 新注册 名字任意取，账户类型为 任何组织目录(任何 Azure AD 目录 - 多租户">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://onedrive.gitcen.com/api/files/onedrive/博客图片/0072Vf1pgy1foxlhdcvy8j31hc0u07iz.jpg">
<meta property="article:published_time" content="2021-05-02T11:51:29.000Z">
<meta property="article:modified_time" content="2021-05-02T11:54:33.797Z">
<meta property="article:author" content="黎">
<meta property="article:tag" content="onedrive">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://onedrive.gitcen.com/api/files/onedrive/博客图片/0072Vf1pgy1foxlhdcvy8j31hc0u07iz.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://lidream.xyz/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#121212","position":"bottom-left"},
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { 
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2021-05-02 19:54:33'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    })(window)</script><meta name="generator" content="Hexo 5.4.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/90cc99065df830a7af86550fc67385c6.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">8</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">2</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友联</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://onedrive.gitcen.com/api/files/onedrive/博客图片/0072Vf1pgy1foxlhdcvy8j31hc0u07iz.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">黎の梦</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友联</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">安装YukiDrive–支持Onedrive-SharePoint文件浏览程序</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2021-05-02T11:51:29.000Z" title="发表于 2021-05-02 19:51:29">2021-05-02</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2021-05-02T11:54:33.797Z" title="更新于 2021-05-02 19:54:33">2021-05-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%9D%82%E4%B8%83%E6%9D%82%E5%85%AB/">杂七杂八</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">1.7k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>7分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="安装YukiDrive–支持Onedrive-SharePoint文件浏览程序"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h1><h2 id="获取程序"><a href="#获取程序" class="headerlink" title="获取程序"></a>获取程序</h2><p>从 <a target="_blank" rel="noopener" href="https://github.com/YukiCoco/YukiDrive/releases">Release</a> 获取对应系统的最新版本</p>
<h2 id="获取-ClientId-与-ClientSecret"><a href="#获取-ClientId-与-ClientSecret" class="headerlink" title="获取 ClientId 与 ClientSecret"></a>获取 ClientId 与 ClientSecret</h2><p>登录Azure：<a target="_blank" rel="noopener" href="https://portal.azure.com/">https://portal.azure.com/</a> 或 <a target="_blank" rel="noopener" href="https://portal.azure.cn/">https://portal.azure.cn/</a> （世纪互联）</p>
<p>点击 Azure Active Directory / 应用注册 / 新注册</p>
<p>名字任意取，账户类型为 <code>任何组织目录(任何 Azure AD 目录 - 多租户)中的帐户</code>，重定向URL为  <code>https://你的域名/api/admin/bind/new</code></p>
<p>点击 概述，记录应用程序（客户端）ID，即为 ClientId</p>
<p>点击 API 权限 / 添加权限 / Microsoft Graph / 委托的权限</p>
<p>勾选 <code>Files.ReadWrite.All</code> 和 <code>Sites.ReadWrite.All</code></p>
<p>点击 证书和密码 / 新客户端密码，创建密码并记录为 ClientSecret</p>
<h2 id="配置-appsettings-json"><a href="#配置-appsettings-json" class="headerlink" title="配置 appsettings.json"></a>配置 appsettings.json</h2><p>从解压后的文件目录中找到 appsettings.json 并修改</p>
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">&#123;</span><br><span class="line">  <span class="attr">&quot;Logging&quot;</span>: &#123;</span><br><span class="line">    <span class="attr">&quot;LogLevel&quot;</span>: &#123;</span><br><span class="line">      <span class="attr">&quot;Microsoft&quot;</span>: <span class="string">&quot;Warning&quot;</span>,</span><br><span class="line">      <span class="attr">&quot;Microsoft.Hosting.Lifetime&quot;</span>: <span class="string">&quot;Information&quot;</span></span><br><span class="line">    &#125;</span><br><span class="line">  &#125;,</span><br><span class="line">  <span class="attr">&quot;AllowedHosts&quot;</span>: <span class="string">&quot;*&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;ConnectionString&quot;</span>: <span class="string">&quot;Data Source=YukiDrive.db;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;ClientId&quot;</span>: <span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;ClientSecret&quot;</span>: <span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;ListeningUrls&quot;</span>: <span class="string">&quot;https://*:1272;http://*:1273&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;Certificate&quot;</span> : &#123;</span><br><span class="line">    <span class="attr">&quot;Enable&quot;</span> : <span class="literal">true</span>,</span><br><span class="line">    <span class="attr">&quot;FilePath&quot;</span> : <span class="string">&quot;&quot;</span>,</span><br><span class="line">    <span class="attr">&quot;Password&quot;</span> : <span class="string">&quot;&quot;</span></span><br><span class="line">  &#125;,</span><br><span class="line">  <span class="attr">&quot;BaseUri&quot;</span>:<span class="string">&quot;https://localhost:1272&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;Proxy&quot;</span>:<span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;Type&quot;</span>:<span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;AccountName&quot;</span>: <span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;DominName&quot;</span>: <span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;AdminName&quot;</span> : <span class="string">&quot;&quot;</span>,</span><br><span class="line">  <span class="attr">&quot;AdminPassword&quot;</span>: <span class="string">&quot;&quot;</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p><code>ClientId</code> 与 <code>ClientSecret</code> 填写在上一步所得值</p>
<p><code>ListeningUrls</code> 和 <code>Certificate</code> 与 https 证书有关，下一步再讲</p>
<p><code>BaseUri</code> 修改为你的域名，有端口必须带上端口号，必须使用 https</p>
<p><code>Type</code> 为你的 Office 账户地区，可选择为</p>
<ul>
<li><code>China</code> 世纪互联</li>
<li><code>Global</code> 国际版</li>
</ul>
<p><code>AccountName</code> 为你的 Office账户名，如：<code>Sakura@yukistudio.onmicrosoft.com</code></p>
<p><code>DominName</code> 为你的 SharePoint 域名，登录 SharePoint 就能在浏览器地址栏看到，如：<code>yukistudio.sharepoint.com</code></p>
<p><code>AdminName</code> 和 <code>AdminPassword</code> 为网站后台的账户和密码</p>
<h2 id="设置-https"><a href="#设置-https" class="headerlink" title="设置 https"></a>设置 https</h2><h3 id="了解配置中的-ListeningUrls"><a href="#了解配置中的-ListeningUrls" class="headerlink" title="了解配置中的 ListeningUrls"></a>了解配置中的 ListeningUrls</h3><p><code>ListeningUrls</code> 项填 <code>http://*:1273</code> 为监听 1273 端口，你可以将域名解析至服务器，访问</p>
<p><code>Http://你的域名:1273</code> 就是你的程序。</p>
<h3 id="类型1：不使用诸如-nginx、apache-此类的服务器"><a href="#类型1：不使用诸如-nginx、apache-此类的服务器" class="headerlink" title="类型1：不使用诸如 nginx、apache 此类的服务器"></a>类型1：不使用诸如 nginx、apache 此类的服务器</h3><p>使用程序自带服务器，但你要手动配置 https</p>
<p>将你的域名证书转换为 pfx 格式，会得到 pfx文件 和 密码，放置于任意目录</p>
<p>修改 appsettings.json 的 <code>Certificate</code> 项</p>
<p><code>FilePath</code> 填写为证书路径，<code>Password</code> 即为证书的密码，<code>Enable</code> 保持为 true</p>
<p>此时 <code>Https://你的域名:1272</code> 为你的网盘程序访问路径</p>
<h3 id="类型2：使用宝塔面板"><a href="#类型2：使用宝塔面板" class="headerlink" title="类型2：使用宝塔面板"></a>类型2：使用宝塔面板</h3><h4 id="修改配置文件"><a href="#修改配置文件" class="headerlink" title="修改配置文件"></a>修改配置文件</h4><p>删除 <code>ListeningUrls</code> 下的 <code>https://*:1272</code></p>
<p>将 <code>Certificate</code> 的 <code>Enable</code> 修改为 <code>false</code></p>
<h4 id="宝塔设置"><a href="#宝塔设置" class="headerlink" title="宝塔设置"></a>宝塔设置</h4><p>创建网站，设置为纯静态。</p>
<p>绑定域名并申请证书，开启 https</p>
<p>点击 站点修改 / 配置文件</p>
<p>删除</p>
<figure class="highlight nginx"><table><tr><td class="code"><pre><span class="line"><span class="attribute">location</span> <span class="regexp">~ .*\.(gif|jpg|jpeg|png|bmp|swf)$</span></span><br><span class="line"><span class="regexp"></span>    &#123;</span><br><span class="line">        <span class="attribute">expires</span>      <span class="number">30d</span>;</span><br><span class="line">        <span class="attribute">error_log</span> <span class="literal">off</span>;</span><br><span class="line">        <span class="attribute">access_log</span> /dev/null;</span><br><span class="line">    &#125;</span><br></pre></td></tr></table></figure>

<p>添加</p>
<figure class="highlight nginx"><table><tr><td class="code"><pre><span class="line"><span class="attribute">location</span> / &#123;</span><br><span class="line">        <span class="attribute">proxy_pass</span>         http://localhost:1273; <span class="comment">#填写为配置文件中的 Listening Urls</span></span><br><span class="line">        <span class="attribute">proxy_http_version</span> <span class="number">1</span>.<span class="number">1</span>;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Upgrade $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Connection keep-alive;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Host $host;</span><br><span class="line">        <span class="attribute">proxy_cache_bypass</span> $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-Proto $scheme;</span><br><span class="line">    &#125;</span><br></pre></td></tr></table></figure>

<p>修改</p>
<figure class="highlight nginx"><table><tr><td class="code"><pre><span class="line"><span class="attribute">root</span> /www/wwwroot/yukidrive/linux/wwwroot;  <span class="comment"># 填写为 程序所在目录/wwwroot</span></span><br></pre></td></tr></table></figure>

<p>最后应该类似于</p>
<figure class="highlight nginx"><table><tr><td class="code"><pre><span class="line">server</span><br><span class="line">&#123;</span><br><span class="line">    <span class="attribute">listen</span> <span class="number">80</span>;</span><br><span class="line">	<span class="attribute">listen</span> <span class="number">443</span> ssl http2;</span><br><span class="line">    <span class="attribute">server_name</span> drive.test.yukino.co drive.yukino.co;</span><br><span class="line">    <span class="attribute">index</span> index.php index.html index.htm default.php default.htm default.html;</span><br><span class="line">    <span class="attribute">root</span> /www/wwwroot/yukidrive/linux/wwwroot;</span><br><span class="line">  </span><br><span class="line">    <span class="attribute">location</span> / &#123;</span><br><span class="line">        <span class="attribute">proxy_pass</span>         http://localhost:1273;</span><br><span class="line">        <span class="attribute">proxy_http_version</span> <span class="number">1</span>.<span class="number">1</span>;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Upgrade $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Connection keep-alive;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Host $host;</span><br><span class="line">        <span class="attribute">proxy_cache_bypass</span> $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-Proto $scheme;</span><br><span class="line">    &#125;</span><br><span class="line">  </span><br><span class="line">    <span class="comment">#SSL-START SSL相关配置，请勿删除或修改下一行带注释的404规则</span></span><br><span class="line">    <span class="comment">#error_page 404/404.html;</span></span><br><span class="line">    <span class="attribute">ssl_certificate</span>    /www/server/panel/vhost/cert/drive.test.yukino.co/fullchain.pem;</span><br><span class="line">    <span class="attribute">ssl_certificate_key</span>    /www/server/panel/vhost/cert/drive.test.yukino.co/privkey.pem;</span><br><span class="line">    <span class="attribute">ssl_protocols</span> TLSv1.<span class="number">1</span> TLSv1.<span class="number">2</span> TLSv1.<span class="number">3</span>;</span><br><span class="line">    <span class="attribute">ssl_ciphers</span> ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;</span><br><span class="line">    <span class="attribute">ssl_prefer_server_ciphers</span> <span class="literal">on</span>;</span><br><span class="line">    <span class="attribute">ssl_session_cache</span> shared:SSL:<span class="number">10m</span>;</span><br><span class="line">    <span class="attribute">ssl_session_timeout</span> <span class="number">10m</span>;</span><br><span class="line">    <span class="attribute">error_page</span> <span class="number">497</span>  https://$host$request_uri;</span><br><span class="line"></span><br><span class="line">    <span class="comment">#SSL-END</span></span><br><span class="line">    <span class="comment">#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效</span></span><br><span class="line">    <span class="attribute">include</span> /www/server/panel/vhost/rewrite/drive.test.yukino.co.conf;</span><br><span class="line">    <span class="comment">#REWRITE-END</span></span><br><span class="line">  </span><br><span class="line">    <span class="comment">#禁止访问的文件或目录</span></span><br><span class="line">    <span class="attribute">location</span> <span class="regexp">~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)</span></span><br><span class="line"><span class="regexp"></span>    &#123;</span><br><span class="line">        <span class="attribute">return</span> <span class="number">404</span>;</span><br><span class="line">    &#125;</span><br><span class="line">  </span><br><span class="line">    <span class="comment">#一键申请SSL证书验证目录相关设置</span></span><br><span class="line">    <span class="attribute">location</span> <span class="regexp">~ \.well-known</span>&#123;</span><br><span class="line">        <span class="attribute">allow</span> all;</span><br><span class="line">    &#125;</span><br><span class="line">  </span><br><span class="line">  </span><br><span class="line">    <span class="attribute">location</span> <span class="regexp">~ .*\.(js|css)?$</span></span><br><span class="line"><span class="regexp"></span>    &#123;</span><br><span class="line">        <span class="attribute">expires</span>      <span class="number">12h</span>;</span><br><span class="line">        <span class="attribute">error_log</span> <span class="literal">off</span>;</span><br><span class="line">        <span class="attribute">access_log</span> /dev/null; </span><br><span class="line">    &#125;</span><br><span class="line">    <span class="attribute">access_log</span>  /www/wwwlogs/drive.test.yukino.co.log;</span><br><span class="line">    <span class="attribute">error_log</span>  /www/wwwlogs/drive.test.yukino.co.<span class="literal">error</span>.log;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="类型3：使用-nginx-反代"><a href="#类型3：使用-nginx-反代" class="headerlink" title="类型3：使用 nginx 反代"></a>类型3：使用 nginx 反代</h3><h4 id="修改配置文件-1"><a href="#修改配置文件-1" class="headerlink" title="修改配置文件"></a>修改配置文件</h4><p>删除 ListeningUrls 下的 <code>https://*:1272</code></p>
<p>将 Certificate 的 Enable 修改为 <code>false</code></p>
<h4 id="配置-Nginx"><a href="#配置-Nginx" class="headerlink" title="配置 Nginx"></a>配置 Nginx</h4><p>创建站点配置文件，并将内容替换为以下内容：</p>
<figure class="highlight nginx"><table><tr><td class="code"><pre><span class="line">server</span><br><span class="line">&#123;</span><br><span class="line">    <span class="attribute">listen</span> <span class="number">80</span>;</span><br><span class="line">    <span class="attribute">server_name</span> example.com <span class="regexp">*.example.com</span>; <span class="comment">#你的域名</span></span><br><span class="line">    <span class="attribute">root</span> /www/wwwroot/yukidrive/linux/wwwroot; <span class="comment"># 填写为 程序所在目录/wwwroot</span></span><br><span class="line">  </span><br><span class="line">    <span class="attribute">location</span> / &#123;</span><br><span class="line">        <span class="attribute">proxy_pass</span>         http://localhost:1273; <span class="comment">#填写为配置文件中的 Listening Urls</span></span><br><span class="line">        <span class="attribute">proxy_http_version</span> <span class="number">1</span>.<span class="number">1</span>;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Upgrade $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Connection keep-alive;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   Host $host;</span><br><span class="line">        <span class="attribute">proxy_cache_bypass</span> $http_upgrade;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line">        <span class="attribute">proxy_set_header</span>   X-Forwarded-Proto $scheme;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>然后使用 <code>certbot</code> 之类的自动脚本申请证书就可以</p>
<h2 id="启动并登录后台绑定账户"><a href="#启动并登录后台绑定账户" class="headerlink" title="启动并登录后台绑定账户"></a>启动并登录后台绑定账户</h2><p><em>未绑定之前直接访问域名会显示 出现错误：undefined 不必理会</em></p>
<p>配置完成后，跳转到程序目录执行 ./YukiDrive 就开始运行了。</p>
<p>Windows 用户直接打开 YukiDrive.exe 开始运行。</p>
<h3 id="绑定账号"><a href="#绑定账号" class="headerlink" title="绑定账号"></a>绑定账号</h3><p>请先确认站点的 https 可用再进行下一步操作。</p>
<p>在浏览器中访问 <code>https://你的域名/#/login</code> 登录，进入后台后找到 SharePoint 账户，点击认证后登录你的微软账户。认证完成后会跳转回后台，此时将会显示为已认证</p>
<h3 id="添加-Onedrive"><a href="#添加-Onedrive" class="headerlink" title="添加 Onedrive"></a>添加 Onedrive</h3><p>点击添加站点，站点名称填写为 onedrive ，显示名随意。</p>
<h3 id="添加任意多个-SharePoint"><a href="#添加任意多个-SharePoint" class="headerlink" title="添加任意多个 SharePoint"></a>添加任意多个 SharePoint</h3><p>点击添加站点，站点名称填写为 SharePoint 创建网站时所填写的站点名称（建议创建为英文字符），显示名随意。</p>
<h2 id="守护程序进程"><a href="#守护程序进程" class="headerlink" title="守护程序进程"></a>守护程序进程</h2><p><em>Windows 用户不必考虑此配置</em></p>
<p>在 Linux 上的程序仅运行于本地账户，退出即关闭，应该将其注册为服务以便能够开机自启和出错重启</p>
<p>做一些修改后复制下列<strong>整条</strong>语句到控制台执行</p>
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">RUNDIR=/www/wwwroot/drive.kurisu.moe/YukiDrive-1.1.2-linux-x64  #修改为程序所在目录</span><br><span class="line">echo &quot;[Unit]</span><br><span class="line">Description=YukiDrive</span><br><span class="line"></span><br><span class="line">[Service]</span><br><span class="line">WorkingDirectory=$RUNDIR</span><br><span class="line">ExecStart=$RUNDIR/YukiDrive</span><br><span class="line">Restart=always</span><br><span class="line">RestartSec=10</span><br><span class="line">KillSignal=SIGINT</span><br><span class="line">SyslogIdentifier=dotnet-YukiDrive</span><br><span class="line">User=root</span><br><span class="line">Environment=ASPNETCORE_ENVIRONMENT=Production</span><br><span class="line">Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false</span><br><span class="line"></span><br><span class="line">[Install]</span><br><span class="line">WantedBy=multi-user.target&quot; &gt; /etc/systemd/system/YukiDrive.service</span><br></pre></td></tr></table></figure>

<p>启动服务</p>
<p><code>systemctl enable YukiDrive.service</code></p>
<p><code>systemctl start YukiDrive.service</code></p>
<p>查看服务状态</p>
<p><code>systemctl status YukiDrive.service</code></p>
<p>显示以下语句即为正常运行</p>
<figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">● YukiDrive.service - YukiDrive</span><br><span class="line">   Loaded: loaded (&#x2F;etc&#x2F;systemd&#x2F;system&#x2F;YukiDrive.service; enabled; vendor preset: enabled)</span><br><span class="line">   Active: active (running) since Mon 2020-03-23 23:39:50 EDT; 2h 6min ago</span><br><span class="line"> Main PID: 7206 (YukiDrive)</span><br><span class="line">    Tasks: 14 (limit: 4915)</span><br><span class="line">   CGroup: &#x2F;system.slice&#x2F;YukiDrive.service</span><br><span class="line">           └─7206 &#x2F;www&#x2F;wwwroot&#x2F;yukidrive&#x2F;linux&#x2F;YukiDrive</span><br><span class="line"></span><br><span class="line">Mar 23 23:39:50 ThoroughUnconscious-VM systemd[1]: Started Example .NET Web API App running on Ubuntu.</span><br><span class="line">Mar 23 23:39:50 ThoroughUnconscious-VM dotnet-YukiDrive[7206]: 开始启动程序...</span><br><span class="line">Mar 23 23:39:54 ThoroughUnconscious-VM dotnet-YukiDrive[7206]: Hosting environment: Production</span><br><span class="line">Mar 23 23:39:54 ThoroughUnconscious-VM dotnet-YukiDrive[7206]: Content root path: &#x2F;www&#x2F;wwwroot&#x2F;yukidrive&#x2F;linux</span><br><span class="line">Mar 23 23:39:54 ThoroughUnconscious-VM dotnet-YukiDrive[7206]: Now listening on: http:&#x2F;&#x2F;localhost:1273</span><br><span class="line">Mar 23 23:39:54 ThoroughUnconscious-VM dotnet-YukiDrive[7206]: Application started. Press Ctrl+C to shut down.</span><br></pre></td></tr></table></figure>

<p>退出服务</p>
<p><code>systemctl stop YukiDrive.service</code></p>
<h2 id="使用-CDN-加速下载"><a href="#使用-CDN-加速下载" class="headerlink" title="使用 CDN 加速下载"></a>使用 CDN 加速下载</h2><p>见：<a target="_blank" rel="noopener" href="https://github.com/YukiCoco/YukiDrive/blob/master/doc/CDN-usage.md">https://github.com/YukiCoco/YukiDrive/blob/master/doc/CDN-usage.md</a></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">黎</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://lidream.xyz/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/">https://lidream.xyz/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://lidream.xyz" target="_blank">黎の梦</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/onedrive/">onedrive</a></div><div class="post_share"><div class="social-share" data-image="https://onedrive.gitcen.com/api/files/onedrive/博客图片/0072Vf1pgy1foxlhdcvy8j31hc0u07iz.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button button--animated"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/IMG_20210502_121615.png" target="_blank"><img class="post-qr-code-img" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/IMG_20210502_121615.png" alt="wechat"/></a><div class="post-qr-code-desc">wechat</div></li><li class="reward-item"><a href="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/IMG_20210502_121427.jpg" target="_blank"><img class="post-qr-code-img" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/IMG_20210502_121427.jpg" alt="alipay"/></a><div class="post-qr-code-desc">alipay</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2021/05/03/V2Fly-WS-TLS-CDN-%E5%AE%9D%E5%A1%94VLESS%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/"><img class="prev-cover" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/QQ看点_0-155640180-92EA9C64CB46F3823BE9E320C0989DB5.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">V2Fly+WS+TLS+CDN+宝塔VLESS搭建教程</div></div></a></div><div class="next-post pull-right"><a href="/2021/05/02/%E5%AE%9D%E5%A1%94Linux%E9%9D%A2%E6%9D%BF%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B%E4%BC%81%E4%B8%9A%E7%89%88/"><img class="next-cover" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/api.vvhan.com[379].jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">宝塔Linux面板安装教程企业版</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/90cc99065df830a7af86550fc67385c6.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">黎</div><div class="author-info__description"></div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">11</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">8</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">2</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/lishangyi"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/lishangyi" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:linettekelly413@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">欢迎来到黎の梦</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E9%83%A8%E7%BD%B2"><span class="toc-number">1.</span> <span class="toc-text">部署</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%8E%B7%E5%8F%96%E7%A8%8B%E5%BA%8F"><span class="toc-number">1.1.</span> <span class="toc-text">获取程序</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%8E%B7%E5%8F%96-ClientId-%E4%B8%8E-ClientSecret"><span class="toc-number">1.2.</span> <span class="toc-text">获取 ClientId 与 ClientSecret</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE-appsettings-json"><span class="toc-number">1.3.</span> <span class="toc-text">配置 appsettings.json</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%AE%BE%E7%BD%AE-https"><span class="toc-number">1.4.</span> <span class="toc-text">设置 https</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BA%86%E8%A7%A3%E9%85%8D%E7%BD%AE%E4%B8%AD%E7%9A%84-ListeningUrls"><span class="toc-number">1.4.1.</span> <span class="toc-text">了解配置中的 ListeningUrls</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%B1%BB%E5%9E%8B1%EF%BC%9A%E4%B8%8D%E4%BD%BF%E7%94%A8%E8%AF%B8%E5%A6%82-nginx%E3%80%81apache-%E6%AD%A4%E7%B1%BB%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8"><span class="toc-number">1.4.2.</span> <span class="toc-text">类型1：不使用诸如 nginx、apache 此类的服务器</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%B1%BB%E5%9E%8B2%EF%BC%9A%E4%BD%BF%E7%94%A8%E5%AE%9D%E5%A1%94%E9%9D%A2%E6%9D%BF"><span class="toc-number">1.4.3.</span> <span class="toc-text">类型2：使用宝塔面板</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"><span class="toc-number">1.4.3.1.</span> <span class="toc-text">修改配置文件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%9D%E5%A1%94%E8%AE%BE%E7%BD%AE"><span class="toc-number">1.4.3.2.</span> <span class="toc-text">宝塔设置</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%B1%BB%E5%9E%8B3%EF%BC%9A%E4%BD%BF%E7%94%A8-nginx-%E5%8F%8D%E4%BB%A3"><span class="toc-number">1.4.4.</span> <span class="toc-text">类型3：使用 nginx 反代</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-1"><span class="toc-number">1.4.4.1.</span> <span class="toc-text">修改配置文件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE-Nginx"><span class="toc-number">1.4.4.2.</span> <span class="toc-text">配置 Nginx</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%90%AF%E5%8A%A8%E5%B9%B6%E7%99%BB%E5%BD%95%E5%90%8E%E5%8F%B0%E7%BB%91%E5%AE%9A%E8%B4%A6%E6%88%B7"><span class="toc-number">1.5.</span> <span class="toc-text">启动并登录后台绑定账户</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BB%91%E5%AE%9A%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.5.1.</span> <span class="toc-text">绑定账号</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B7%BB%E5%8A%A0-Onedrive"><span class="toc-number">1.5.2.</span> <span class="toc-text">添加 Onedrive</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B7%BB%E5%8A%A0%E4%BB%BB%E6%84%8F%E5%A4%9A%E4%B8%AA-SharePoint"><span class="toc-number">1.5.3.</span> <span class="toc-text">添加任意多个 SharePoint</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%88%E6%8A%A4%E7%A8%8B%E5%BA%8F%E8%BF%9B%E7%A8%8B"><span class="toc-number">1.6.</span> <span class="toc-text">守护程序进程</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8-CDN-%E5%8A%A0%E9%80%9F%E4%B8%8B%E8%BD%BD"><span class="toc-number">1.7.</span> <span class="toc-text">使用 CDN 加速下载</span></a></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2021/05/09/API%E5%B9%B3%E5%8F%B0%E5%A4%A7%E5%85%A8/" title="API平台大全"><img src="https://tx2.a.yximgs.com/ufile/atlas/NTE5NzE1NDAxODQwOTUyMTI1Nl8xNjIwMDQ0NTc1Nzk4_12.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="API平台大全"/></a><div class="content"><a class="title" href="/2021/05/09/API%E5%B9%B3%E5%8F%B0%E5%A4%A7%E5%85%A8/" title="API平台大全">API平台大全</a><time datetime="2021-05-08T22:39:12.000Z" title="发表于 2021-05-09 06:39:12">2021-05-09</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/05/05/%E5%85%8D%E6%B5%81%E6%B7%B7%E6%B7%86%E6%95%B4%E7%90%86/" title="免流混淆整理"><img src="https://tx2.a.yximgs.com/ufile/atlas/NTE5NzE1NDAxODQwOTUyMTI1Nl8xNjIwMDQ0NTc1Nzk4_11.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="免流混淆整理"/></a><div class="content"><a class="title" href="/2021/05/05/%E5%85%8D%E6%B5%81%E6%B7%B7%E6%B7%86%E6%95%B4%E7%90%86/" title="免流混淆整理">免流混淆整理</a><time datetime="2021-05-04T20:23:11.000Z" title="发表于 2021-05-05 04:23:11">2021-05-05</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/05/04/%E7%8E%A9%E5%AE%A2%E4%BA%91%E5%88%B7armbian/" title="玩客云刷armbian"><img src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/api.vvhan.com[675].jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="玩客云刷armbian"/></a><div class="content"><a class="title" href="/2021/05/04/%E7%8E%A9%E5%AE%A2%E4%BA%91%E5%88%B7armbian/" title="玩客云刷armbian">玩客云刷armbian</a><time datetime="2021-05-04T10:23:04.000Z" title="发表于 2021-05-04 18:23:04">2021-05-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/05/03/V2Fly-WS-TLS-CDN-%E5%AE%9D%E5%A1%94VLESS%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/" title="V2Fly+WS+TLS+CDN+宝塔VLESS搭建教程"><img src="https://lingering-glitter-6256.lking.workers.dev/api/files/onedrive/博客图片/QQ看点_0-155640180-92EA9C64CB46F3823BE9E320C0989DB5.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="V2Fly+WS+TLS+CDN+宝塔VLESS搭建教程"/></a><div class="content"><a class="title" href="/2021/05/03/V2Fly-WS-TLS-CDN-%E5%AE%9D%E5%A1%94VLESS%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B/" title="V2Fly+WS+TLS+CDN+宝塔VLESS搭建教程">V2Fly+WS+TLS+CDN+宝塔VLESS搭建教程</a><time datetime="2021-05-03T02:07:01.000Z" title="发表于 2021-05-03 10:07:01">2021-05-03</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/" title="安装YukiDrive–支持Onedrive-SharePoint文件浏览程序"><img src="https://onedrive.gitcen.com/api/files/onedrive/博客图片/0072Vf1pgy1foxlhdcvy8j31hc0u07iz.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="安装YukiDrive–支持Onedrive-SharePoint文件浏览程序"/></a><div class="content"><a class="title" href="/2021/05/02/%E5%AE%89%E8%A3%85YukiDrive%E2%80%93%E6%94%AF%E6%8C%81Onedrive-SharePoint%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E7%A8%8B%E5%BA%8F/" title="安装YukiDrive–支持Onedrive-SharePoint文件浏览程序">安装YukiDrive–支持Onedrive-SharePoint文件浏览程序</a><time datetime="2021-05-02T11:51:29.000Z" title="发表于 2021-05-02 19:51:29">2021-05-02</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2021 By 黎</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"></div><div class="aplayer no-destroy" data-id="705324907" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="true" muted></div><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="true" data-click="true"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js" async="async" mobile="true"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
  'title',
  '#config-diff',
  '#body-wrap',
  '#rightside-config-hide',
  '#rightside-config-show',
  '.js-pjax'
]

if (false) {
  pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}

var pjax = new Pjax({
  elements: 'a:not([target="_blank"]):not([href="no-destroy"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  // google analytics
  typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});

  // baidu analytics
  typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // Analytics
  if (false) {
    MtaH5.pgv()
  }

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})


document.addEventListener('pjax:send', function () {
  typeof preloader === 'object' && preloader.initLoading()
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>